//
//  PercentCalculateView.swift
//  BRCalculator
//
//  Created by 王亮 on 2018/11/27.
//  Copyright © 2018 王亮. All rights reserved.
//

import Foundation
import UIKit

final class PercentCalculateView: UIButton, CalculationElement {
    
    var elementType: ElementType = .calElement
    
    var calType: CalType = .directCal

    static var elementName: String = "%"

    func directCalculate(a: Double) -> Double {
        return a * 0.01
    }
}
